#ifndef _mcu_comm_driver_h
#define _mcu_comm_driver_h


#include "tfc_def.h"

class McuCommDriver {
private:
    int   m_uart_id;
    bool  m_isMaster;
    DWORD m_importMs;
public:
    BYTE			m_rxBuf[256];
    DWORD			m_rxBufLen;
    McuCommDriver(int uart_id,DWORD baudrate,BOOL isMaster,BOOL is485);   
    virtual ~McuCommDriver();
    virtual WORD   Import(BYTE* rxBuf, DWORD len);
    virtual DWORD  Send(BYTE* srcBuf, DWORD toSendLen);
    virtual DWORD  Receive(BYTE* dstBuf, DWORD toRecvSize);
};

#endif
